using System;
using System.Collections.Generic;
namespace MicroMsg.Storage
{
	public class MsgTransStorageProxy
	{
		private static MsgTransStorage msgTransStorage_0 = new MsgTransStorage();
		public MsgTrans getByMsgTransID(int nMsgTransID)
		{
			return MsgTransStorageProxy.msgTransStorage_0.method_5((MsgTrans msgTrans_0) => msgTrans_0.nMsgTransID == nMsgTransID);
		}
		public MsgTrans getByMsgSvrID(int nMsgSvrID)
		{
			return MsgTransStorageProxy.msgTransStorage_0.method_5((MsgTrans msgTrans_0) => msgTrans_0.nMsgSvrID == nMsgSvrID);
		}
		public MsgTrans getByClientMsgID(string clientMsgID)
		{
			return MsgTransStorageProxy.msgTransStorage_0.method_5((MsgTrans msgTrans_0) => msgTrans_0.strClientMsgId == clientMsgID);
		}
		public List<MsgTrans> getList(Func<MsgTrans, bool> predicate)
		{
			return MsgTransStorageProxy.msgTransStorage_0.search(predicate, -1, 0);
		}
		protected List<MsgTrans> getList(int start, int int_0, Func<MsgTrans, bool> predicate)
		{
			if (predicate != null && start >= 0 && int_0 > 0)
			{
				return MsgTransStorageProxy.msgTransStorage_0.search(predicate, start, int_0);
			}
			return null;
		}
		public bool updateTransBySvrID(MsgTrans msgTrans_0)
		{
			return msgTrans_0 != null && MsgTransStorageProxy.msgTransStorage_0.update(msgTrans_0, (MsgTrans msgTrans_1) => msgTrans_1.nMsgSvrID == msgTrans_0.nMsgSvrID);
		}
		public MsgTrans method_0(Func<MsgTrans, bool> predicate)
		{
			return MsgTransStorageProxy.msgTransStorage_0.method_5(predicate);
		}
		public bool method_1(MsgTrans item)
		{
			return MsgTransStorageProxy.msgTransStorage_0.vmethod_0(item);
		}
		public bool method_2(MsgTrans item)
		{
			return MsgTransStorageProxy.msgTransStorage_0.method_2(item);
		}
		public bool method_3(Func<MsgTrans, bool> predicate)
		{
			return MsgTransStorageProxy.msgTransStorage_0.method_6(predicate);
		}
		public bool modify(MsgTrans item)
		{
			return MsgTransStorageProxy.msgTransStorage_0.modify(item);
		}
		public bool update(MsgTrans item)
		{
			return MsgTransStorageProxy.msgTransStorage_0.update(item);
		}
		public bool update(MsgTrans msgTrans_0, Func<MsgTrans, bool> func_0)
		{
			return MsgTransStorageProxy.msgTransStorage_0.update(msgTrans_0, func_0);
		}
		public static int getMsgTransID(int nMsgLocalID)
		{
			MsgTrans msgTrans = MsgTransStorageProxy.msgTransStorage_0.method_5((MsgTrans msgTrans_0) => msgTrans_0.nMsgLocalID == nMsgLocalID);
			if (msgTrans == null)
			{
				return 0;
			}
			return msgTrans.nMsgTransID;
		}
		public void dumpTable()
		{
			MsgTransStorageProxy.msgTransStorage_0.dumpTable();
		}
	}
}
